import yunRequest from "./api";

const baseUrl = getApp().globalData.apiBaseUrl;


//获取订单信息
export function getOrders(page, pageSize, phone, stateCode) {
  let url = baseUrl + "/order/getOrders"
  return yunRequest.get(url, {
    page,
    pageSize,
    phone,
    stateCode
  });
}
//取消、和删除订单、重新下单
export function updateState(orderId, state, phone, total) {
  let url = baseUrl + "/order/updateState"
  return yunRequest.post(url, {
    orderId, state, phone, total
  });
}
